package com.reef.entity;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor

@Entity
@Table(name = "book_class")//设置表名
@JsonIgnoreProperties(value = {"hibernateLazyInitializer","handler"})//懒加载
public class Book_class {
@Id //设置主键
@GeneratedValue(strategy = GenerationType.IDENTITY)//主键生成的机制	
  private Integer classId;//类别编号
  private String className;//类别名称
  private Integer res1;
  private Integer res2;
  private Integer res3;
  private String res4;
  private String res5;
  private String res6;
@Override
public String toString() {
	return "Book_class [classId=" + classId + ", className=" + className + ", res1=" + res1 + ", res2=" + res2
			+ ", res3=" + res3 + ", res4=" + res4 + ", res5=" + res5 + ", res6=" + res6 + "]";
}

}
